import datetime
d1 = datetime.datetime(2019,11,23,11,24,0)
print(d1.strftime('%Y/%m/%d %H:%M:%S'))

s = '2019-12-12 00:00:00'
d2 = datetime.datetime.strptime(s,"%Y-%m-%d %H:%M:%S")
print(d2)

d3 = datetime.datetime(2019,11,24,00,00,00)
print(d3)

ss =d3-d1
print(ss.microseconds)